number of nodes in a linked list